#include "SMPPDestNetworkType.hpp"

using namespace smpp::pdu;

DestNetworkType::DestNetworkType(const quint8 nValue):
TLV(TLVtags::TAG_DEST_NETWORK_TYPE,1),_Value(nValue){}

DestNetworkType::DestNetworkType(const DestNetworkType &nDestNetworkType):
TLV(nDestNetworkType),_Value(nDestNetworkType.getValue()){}

bool DestNetworkType::operator ==(
const DestNetworkType &nDestNetworkType) const{
	return (TLV::operator == (nDestNetworkType) && 
			_Value == nDestNetworkType.getValue());
}

bool DestNetworkType::operator !=(
	const DestNetworkType &nDestNetworkType) const{
	return !this->operator == (nDestNetworkType);
}

DestNetworkType &DestNetworkType::operator = (
	const DestNetworkType &nDestNetworkType){
	if(*this == nDestNetworkType)
		return *this;
	TLV::operator = (nDestNetworkType);
	_Value = nDestNetworkType.getValue();
	return *this;
}

void DestNetworkType::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 DestNetworkType::getValue() const{
	return _Value;
}
